<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('index')}">文件列表</a></li>
			<li class="active"><a href="{:url('add')}">添加文件</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('add')}">
			<div class="form-group">
				<label for="input-file_name" class="col-sm-2 control-label"><span class="form-required">*</span>文件名称</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-file_name" required name="file_name">
				</div>
			</div>
			<div class="form-group">
				<label for="input-file" class="col-sm-2 control-label"><span class="form-required">*</span>文件</label>
				<div class="col-md-6 col-sm-10">
					<input id="input-file" type="hidden" name="file">
					<a href="javascript:uploadOne('文件上传','#input-file','file');"
					   class="btn btn-default btn-sm">选择文件</a>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
					<a class="btn btn-default" href="{:url('index')}">返回</a>
				</div>
			</div>
		</form>
	</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>